package cn.zhaoyuening.leasecloud.middle.config;

import cn.zhaoyuening.leasecloud.common.domain.*;
import hprose.io.HproseClassManager;
import hprose.server.HproseHttpService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Buynow on 2017/7/1.
 */
@Configuration
public class BeanConfig {
    @Bean
    public HproseHttpService hproseHttpService() {
        HproseHttpService hproseHttpService = new HproseHttpService();
        HproseClassManager.register(DeviceType.class,"DeviceType");
        HproseClassManager.register(Device.class,"Device");
        HproseClassManager.register(Mode.class,"Mode");
        HproseClassManager.register( Supplier.class,"Supplier");
        HproseClassManager.register(CastDetail.class,"CastDetail");

        return hproseHttpService;
    }
}
